#!/bin/bash

sudo apt install make  gcc -y

gcc -o MacTool Mactool.c
sudo cp ./Firmware/n210-1x1g-copper-L-1.0.0.0-pxe-0.1.34.img.bin /lib/firmware/n210_driver_update.bin

cd ./driver/src
sudo make && sudo make install

sudo modprobe rnpgbe

sudo reboot